package com.xbk.seckill.stock.domain.model.enums;

import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.Getter;

/**
 * 库存分桶事件类型
 *
 * @author xiexu
 * @date 2025/3/8 21:47
 */
public enum SeckillStockBucketEventType {

    /**
     * 关闭库存分桶
     */
    DISABLED(0),
    /**
     * 启用库存分桶
     */
    ENABLED(1),
    /**
     * 编排库存分桶
     */
    ARRANGED(2);

    public Integer getCode() {
        return code;
    }

    private final Integer code;

    SeckillStockBucketEventType(Integer code) {
        this.code = code;
    }

}
